home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / TPWENG / TBLDECRY.PAS < prev    next >
Pascal/Delphi Source File  |  1991-07-22  |  437b  |  25 lines

  1. program TblDecry;
  2. uses PXEngine, WinCrt;
  3.  
  4. const TableName = 'Table';
  5.       Password  = 'Password';
  6.  
  7. var   PxErr: Integer;
  8.  
  9. procedure PX(Code : integer);
  10. begin
  11.   writeln(PXErrMsg(Code));
  12. end;
  13.  
  14. begin
  15.   PX(PXWinInit('MyApp', pxShared));
  16.   PX(PXPswAdd(Password));
  17.  
  18.   (* Attempt to decrypt the table *)
  19.   PxErr := PXTblDecrypt(TableName);
  20.   if PxErr <> PxSuccess then
  21.     Writeln(PxErrMsg(PxErr));
  22.  
  23.   PX(PXExit);
  24. end.
  25.